package com.homegoods.designer.util;

import android.support.annotation.NonNull;
import android.text.SpannableStringBuilder;

import com.kedll.library.util.SpanUtil;

/**
 * @author QiQi
 * @ClassName: Utils
 * @date 2018/9/16
 * @description
 */
public class Utils {

    @NonNull
    public static SpannableStringBuilder getOffer(String price) {
        return SpanUtil.create()
                .addSection(price)
                .addSection("元/")
                .addSection("m")
                .addSuperSection("2")
                .setRelSize("2", 0.5f)
                .getSpanStrBuilder();
    }

    public static SpannableStringBuilder getSpace(String space) {
        return SpanUtil.create()
                .addSection(space)
                .addSection("m")
                .addSuperSection("2")
                .setRelSize("2", 0.5f)
                .getSpanStrBuilder();
    }


}
